package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.IdeaCommentDao;
import com.kuiandjie.entity.IdeaComment;

public class IdeaCommentService {
	private IdeaCommentDao dao = new IdeaCommentDao();

	public List<IdeaComment> getCommentByIdeaId(int ideaId) {
		return dao.findByIdeaId(ideaId);
	}

	public int insertComment(IdeaComment ic) {
		return dao.insertComment(ic);
	}

	public List<IdeaComment> getCommentByIdAndTime(int ideaId, String lastTime,
			int commentId) {
		return dao.findByIdAndTime(ideaId, lastTime, commentId);
	}
}
